import Vue from 'vue'
import Router from 'vue-router'
import Test from '@/pages/test'
import Login from '@/pages/login'
import Register from '@/pages/register'
import RetrievePassword from '@/pages/retrievePassword'
import Index from '@/pages/index'
import Set from '@/pages/set'
import Order from '@/pages/order'
import ShopCar from '@/pages/shopCar'
import Settle from '@/pages/settle'
import ApplyShop from '@/pages/applyShop'
import PersonalInfo from '@/pages/personalInfo'
import MyAccount from '@/pages/myAccount'
import Withdrawals from '@/pages/withdrawals'
import Cooperation from '@/pages/cooperation'
import ManageAddress from '@/pages/manageAddress'
import ModifyPassword from '@/pages/modifyPassword'
import BankInfo from '@/pages/bankInfo'
import About from '@/pages/about'

Vue.use(Router)

export default new Router({
	mode: 'history',
	routes: [{
			path: '/test',
			name: 'Test',
			component: Test
		},
		{
			path: '/login',
			name: 'Login',
			component: Login
		},
		{
			path: '/register',
			name: 'Register',
			component: Register
		},
		{
			path: '/retrievePassword',
			name: 'RetrievePassword',
			component: RetrievePassword
		},
		{
			path: '/',
			name: 'Index',
			component: Index
		},
		{
			path: '/set',
			name: 'Set',
			component: Set
		},
		{
			path: '/order',
			name: 'Order',
			component: Order
		},
		{
			path: '/shopcar',
			name: 'ShopCar',
			component: ShopCar
		},
		{
			path: '/settle',
			name: 'Settle',
			component: Settle
		},
		{
			path: '/applyshop',
			name: 'ApplyShop',
			component: ApplyShop
		},
		{
			path: '/personalInfo',
			name: 'PersonalInfo',
			component: PersonalInfo
		},
		{
			path: '/myAccount',
			name: 'MyAccount',
			component: MyAccount
		},
		{
			path: '/withdrawals',
			name: 'Withdrawals',
			component: Withdrawals
		},
		{
			path: '/cooperation',
			name: 'Cooperation',
			component: Cooperation
		},
		{
			path: '/manageAddress',
			name: 'ManageAddress',
			component: ManageAddress
		},
		{
			path: '/modifyPassword',
			name: 'ModifyPassword',
			component: ModifyPassword
		},
		{
			path: '/bankInfo',
			name: 'BankInfo',
			component: BankInfo
		},
		{
			path: '/about',
			name: 'About',
			component: About
		},
	]
})